<template>
  <div class="">
    全选：<input
      type="checkbox"
      v-model="$store.state.checked"
      @change="checkall"
    />

    已选择：{{ $store.state.result.length }}/全部：{{
      $store.state.list.length
    }}

    <el-button @click="removeall" v-show="$store.state.result.length != 0"
      >删除选中内容</el-button
    >
  </div>
</template>

<script>
export default {
  data() {
    return {};
  },
  mounted() {},
  methods: {
    checkall() {
      this.$store.commit("checkall");
    },
    removeall() {
      this.$store.commit("removeall");
    },
  },
  components: {},
};
</script>

<style lang="scss"></style>
